package com.atguigu.gmall.product.client.impl;

import com.atguigu.gmall.model.product.*;
import com.atguigu.gmall.product.client.ProductFeignClient;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Author: lx
 * @Time: 11:42
 * @Description:\
 * 降级处理实现类
 */
@Component
public class ProductFeignClientImpl implements ProductFeignClient {
    @Override
    public BaseCategoryView getBaseCategoryView(Long category3Id) {
        //降级处理代码
        //BaseCategoryView baseCategoryView = new BaseCategoryView();
        //baseCategoryView.setCategory1Id(11);
        System.out.println("查询三级分类熔断之后降级处理");
        return null;
    }

    @Override
    public SkuInfo getSkuInfo(Long skuId) {
        return null;
    }

    @Override
    public BigDecimal getPrice(Long skuId) {
        return null;
    }

    @Override
    public List<SpuSaleAttr> getSpuSaleAttrAndChecked(Long spuId, Long skuId) {
        return null;
    }

    @Override
    public Map getSaleAttrValuesBySpu(Long spuId) {
        return null;
    }

    @Override
    public List<BaseCategoryView> getBaseCategoryViewList() {
        return null;
    }

    @Override
    public BaseTrademark getBaseTrademark(Long id) {
        return null;
    }

    @Override
    public List<SkuAttrValue> getBaseAttrInfoAndBaseAttrValue(Long skuId) {
        return null;
    }
}
